package com.slliver.pojo;

import lombok.*;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
@Accessors(chain = true)
@Table(name = "tb_product")
public class Product implements Serializable {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String title;
    private Double price;
    private String img;
    @Column(name = "createTime")
    private Date createTime;
    private Integer num;
    // 产品状态：1-发布；0-未发布
    private Integer status;
}
